3.6 \(\int \frac {\sin (x)}{a-a \cos ^2(x)} \, dx\)

Optimal. Leaf size=8 \[ -\frac {\tanh ^{-1}(\cos (x))}{a} \]

[Out]

-arctanh(cos(x))/a

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 8, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3175, 3770} \[ -\frac {\tanh ^{-1}(\cos (x))}{a} \]

Antiderivative was successfully verified.

[In]

Int[Sin[x]/(a - a*Cos[x]^2),x]

[Out]

-(ArcTanh[Cos[x]]/a)

Rule 3175

Int[(u_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]^2)^(p_), x_Symbol] :> Dist[a^p, Int[ActivateTrig[u*cos[e + f*x
]^(2*p)], x], x] /; FreeQ[{a, b, e, f, p}, x] && EqQ[a + b, 0] && IntegerQ[p]

Rule 3770

Int[csc[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[ArcTanh[Cos[c + d*x]]/d, x] /; FreeQ[{c, d}, x]

Rubi steps

\begin {align*} \int \frac {\sin (x)}{a-a \cos ^2(x)} \, dx &=\frac {\int \csc (x) \, dx}{a}\\ &=-\frac {\tanh ^{-1}(\cos (x))}{a}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B]  time = 0.01, size = 21, normalized size = 2.62 \[ \frac {\log \left (\sin \left (\frac {x}{2}\right )\right )-\log \left (\cos \left (\frac {x}{2}\right )\right )}{a} \]

Antiderivative was successfully verified.

[In]

Integrate[Sin[x]/(a - a*Cos[x]^2),x]

[Out]

(-Log[Cos[x/2]] + Log[Sin[x/2]])/a

________________________________________________________________________________________

fricas [B]  time = 0.63, size = 22, normalized size = 2.75 \[ -\frac {\log \left (\frac {1}{2} \, \cos \relax (x) + \frac {1}{2}\right ) - \log \left (-\frac {1}{2} \, \cos \relax (x) + \frac {1}{2}\right )}{2 \, a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)/(a-a*cos(x)^2),x, algorithm="fricas")

[Out]

-1/2*(log(1/2*cos(x) + 1/2) - log(-1/2*cos(x) + 1/2))/a

________________________________________________________________________________________

giac [B]  time = 0.16, size = 23, normalized size = 2.88 \[ -\frac {\log \left (\cos \relax (x) + 1\right )}{2 \, a} + \frac {\log \left (-\cos \relax (x) + 1\right )}{2 \, a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)/(a-a*cos(x)^2),x, algorithm="giac")

[Out]

-1/2*log(cos(x) + 1)/a + 1/2*log(-cos(x) + 1)/a

________________________________________________________________________________________

maple [A]  time = 0.05, size = 9, normalized size = 1.12 \[ -\frac {\arctanh \left (\cos \relax (x )\right )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(x)/(a-a*cos(x)^2),x)

[Out]

-arctanh(cos(x))/a

________________________________________________________________________________________

maxima [B]  time = 0.31, size = 21, normalized size = 2.62 \[ -\frac {\log \left (\cos \relax (x) + 1\right )}{2 \, a} + \frac {\log \left (\cos \relax (x) - 1\right )}{2 \, a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)/(a-a*cos(x)^2),x, algorithm="maxima")

[Out]

-1/2*log(cos(x) + 1)/a + 1/2*log(cos(x) - 1)/a

________________________________________________________________________________________

mupad [B]  time = 2.11, size = 8, normalized size = 1.00 \[ -\frac {\mathrm {atanh}\left (\cos \relax (x)\right )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(x)/(a - a*cos(x)^2),x)

[Out]

-atanh(cos(x))/a

________________________________________________________________________________________

sympy [B]  time = 0.22, size = 19, normalized size = 2.38 \[ \frac {\log {\left (\cos {\relax (x )} - 1 \right )}}{2 a} - \frac {\log {\left (\cos {\relax (x )} + 1 \right )}}{2 a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)/(a-a*cos(x)**2),x)

[Out]

log(cos(x) - 1)/(2*a) - log(cos(x) + 1)/(2*a)

________________________________________________________________________________________